.chatContainer {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #ededed;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;

    .navbar {
        height: 45px;
        background: #f7f7f7;
        border-bottom: 1px solid #e6e6e6;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 17px;
        font-weight: 500;
        color: #333;
        position: relative;

        .offlineTag {
            font-size: 12px;
            color: #999;
            margin-left: 8px;
            font-weight: normal;
        }

        .backIcon {
            position: absolute;
            left: 16px;
            font-size: 20px;
            color: #333;
        }

        .title {
            font-size: 17px;
            font-weight: 500;
        }
    }

    .messageList {
        flex: 1;
        overflow-y: auto;
        padding: 16px;
        background: #ededed;

        .messageItem {
            display: flex;
            margin-bottom: 16px;
            align-items: flex-start;

            .avatar {
                width: 40px;
                height: 40px;
                border-radius: 4px;
                margin: 0 12px;
                flex-shrink: 0;
                cursor: pointer;
                transition: opacity 0.2s;
                
                &:hover {
                    opacity: 0.8;
                }
            }

            .messageContent {
                max-width: 70%;
                position: relative;

                .messageText {
                    padding: 10px 16px;
                    border-radius: 4px;
                    font-size: 16px;
                    line-height: 1.4;
                    word-break: break-all;
                }

                .messageImage {
                    img {
                        max-width: 200px;
                        max-height: 200px;
                        border-radius: 4px;
                        cursor: pointer;
                        transition: opacity 0.2s;
                        
                        &:hover {
                            opacity: 0.9;
                        }
                    }
                }

                .messageTime {
                    font-size: 12px;
                    color: #b2b2b2;
                    margin-top: 4px;
                    padding: 0 8px;
                }
            }

            &.received {
                .messageContent {
                    .messageText {
                        background: #fff;
                        color: #333;
                        border: 1px solid #e6e6e6;

                        &::before {
                            content: '';
                            position: absolute;
                            left: -4px;
                            top: 15px;
                            width: 8px;
                            height: 8px;
                            background: #fff;
                            border-left: 1px solid #e6e6e6;
                            border-bottom: 1px solid #e6e6e6;
                            transform: rotate(45deg);
                        }
                    }
                }
            }

            &.sent {
                flex-direction: row-reverse;

                .messageContent {
                    .messageText {
                        background: #95ec69;
                        color: #333;

                        &::before {
                            content: '';
                            position: absolute;
                            right: -4px;
                            top: 15px;
                            width: 8px;
                            height: 8px;
                            background: #95ec69;
                            transform: rotate(45deg);
                        }
                    }

                    .messageTime {
                        text-align: right;
                    }
                }
            }
        }
    }

    .inputArea {
        padding: 8px 12px;
        background: #f7f7f7;
        border-top: 1px solid #e6e6e6;
        display: flex;
        align-items: center;
        gap: 8px;

        .imageUploader {
            :global {
                .adm-image-uploader-cell {
                    padding: 0;
                    border: none;
                    background: transparent;
                }
            }
        }

        .uploadButton {
            width: 32px;
            height: 32px;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #7d7d7d;
            background: transparent;
            border: none;
            font-size: 24px;

            &:active {
                opacity: 0.7;
            }
        }

        .input {
            flex: 1;
            background: #fff;
            border-radius: 4px;
            padding: 8px 12px;
            border: 1px solid #e6e6e6;
            font-size: 15px;
            line-height: 20px;
            height: 36px;
        }

        .sendButton {
            width: 60px;
            height: 36px;
            border-radius: 4px;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #95ec69;
            color: #333;
            border: none;
            font-size: 15px;

            &:active {
                opacity: 0.8;
            }

            &:disabled {
                background: #ccc;
                color: #fff;
            }
        }
    }
} 